package com.winter.app.controller;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.winter.app.mapper.ImUserMapper;
import com.winter.pojo.Response;
import com.winter.pojo.entity.ImUser;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * Author: Li
 * Date: 10/27/2025 00:53
 * Description: TestController
 */
@RestController
public class TestController {
    @Resource
    private ImUserMapper imUserMapper;

    @GetMapping("/test")
    public Response<ImUser> t(){
        QueryWrapper<ImUser> queryWrapper = new QueryWrapper<>();
        queryWrapper.eq("id", 1);
        ImUser user = imUserMapper.selectOne(queryWrapper);
        return Response.success(user);
    }
}
